﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Administrator_EditHotline : System.Web.UI.Page
{
    tblHotline hotline = new tblHotline();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
            BindData(HotlineID);

        }
        
    }
    int HotlineID
    {
        get
        {
            return Convert.ToInt32(Request.QueryString["HotlineID"]);
        }
    }
    public void BindData(int HotlineID)
    {
        DataTable db = hotline.getAllHotlineById(10);
        txtName.Text = db.Rows[0]["HotlineName"].ToString();
        txtphone.Text = db.Rows[0]["HotlinePhone"].ToString();
        txtyahoo.Text = db.Rows[0]["HotlineYahoo"].ToString();
        txtskype.Text = db.Rows[0]["HotlineSkype"].ToString();
    }

    protected void btnSubmit_Click(object sender, EventArgs e)
    {

    }
}